﻿namespace FastCode.DTO
{
    public class QueryBase
    {
        
        public int pageIndex { get; set; } = 1;
        public int pageSize { get; set; } = 20;

        public List<SearchCondition> SearchConditions { get; set; } // 添加这个属性用于存储搜索条件

    }

    public class SearchCondition
    {
        public string FieldName { get; set; }
        public ConditionType ConditionType { get; set; }
        public object Value { get; set; }
    }

    public enum ConditionType : byte
    {
        Equal = 0,
        Contains = 1,
        // 添加其他条件类型
    }
}
